<template>
  <div class="twoBox">
    <div class="tips" v-if="ifshow">
      键盘方向键也控制
      <button @click="gbTips">&#8730; </button>
    </div>
    <div id="poi">分数：0</div>
    <div id="new"><a id="newa" href="#">新的游戏</a></div>
    <div id="box">
      <div id="bo1"></div>
      <div id="bo2"></div>
      <div id="over" ></div>
    </div>
    <div id="cont">
      <div id="le">&#60;</div>
      <div id="to">&#923;</div>
      <div id="ri">&#62;</div>
      <div id="bo">V</div>
    </div>
  </div>
</template>

<script>
  import buildgame from './two'
  export default {
    name: "Two",
    data(){
      return {
        ifshow:true,
      }
    },
    methods:{
      gbTips(){
        this.ifshow=false;
      }
    },
    mounted() {
      buildgame();
    }
  }
</script>

<style scoped>
  @import "./two.css";
  .tips{
    padding-left: 5px;
    position: fixed;
    line-height: 40px;
    text-align: center;
    color: #333333;
  }
</style>
